package com.woniuxy.qiantai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.qiantai.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author woniumrwang
 * @since 2023-01-06 02:44:35
 */
@Mapper
public interface AddressMapper extends BaseMapper<Address> {

    @Update("UPDATE t_address SET isDefault='0' WHERE userId=#{userId}")
    void clearIsDefault(Long userId);

}
